import { app } from 'electron'
import contextMenu from './contextMenu'

app.on('web-contents-created', (_, createdWebContents) => {
  // 注册右键菜单
  contextMenu(createdWebContents)
  createdWebContents.on('did-create-window', (childWindow) => {
    childWindow.setMenu(null) // 禁用菜单
  })
})
